//  定义常量，并挂载到Vue对象 身上
import Vue from 'vue'
// 导入 播放的 图
import Play from '../assets/images/btn-play.png'


const NewSongsCategory = [
  { type: 0, name: "全部" },
  { type: 7, name: "华语" },
  { type: 96, name: "欧美" },
  { type: 8, name: "日本" },
  { type: 16, name: "韩国" },
]

// 网易云的特色榜单
const ToplistTeseBang = [
  { name: "飙升榜", time: "刚刚更新", id: 19723756, url: "https://p2.music.126.net/DrRIg6CrgDfVLEph9SNh7w==/18696095720518497.jpg" },
  { name: "新歌榜", time: "每天更新", id: 3779629, url: "https://p1.music.126.net/N2HO5xfYEqyQ8q6oxCw8IQ==/18713687906568048.jpg" },
  { name: "原创榜", time: "每周四更新", id: 2884035, url: "https://p1.music.126.net/sBzD11nforcuh1jdLSgX7g==/18740076185638788.jpg" },
  { name: "热歌榜", time: "每天更新", id: 3778678, url: "https://p1.music.126.net/GhhuF6Ep5Tq9IEvLsyCN7w==/18708190348409091.jpg" },
]

// 歌手页面
const EnglishLetters = [
  { name: "全部", id: '' },
  { name: 'A', id: 'A' },
  { name: 'B', id: 'B' },
  { name: 'C', id: 'C' },
  { name: 'D', id: 'D' },
  { name: 'E', id: 'E' },
  { name: 'F', id: 'F' },
  { name: 'G', id: 'G' },
  { name: 'H', id: 'H' },
  { name: 'I', id: 'I' },
  { name: 'J', id: 'J' },
  { name: 'K', id: 'K' },
  { name: 'L', id: 'L' },
  { name: 'M', id: 'M' },
  { name: 'N', id: 'N' },
  { name: 'O', id: 'O' },
  { name: 'P', id: 'P' },
  { name: 'Q', id: 'Q' },
  { name: 'R', id: 'R' },
  { name: 'S', id: 'S' },
  { name: 'T', id: 'T' },
  { name: 'U', id: 'U' },
  { name: 'V', id: 'V' },
  { name: 'W', id: 'W' },
  { name: 'X', id: 'X' },
  { name: 'Y', id: 'Y' },
  { name: 'Z', id: 'Z' }
]
const SingerType = [
  { name: '全部', id: -1 },
  { name: '男歌手', id: 1 },
  { name: '女歌手', id: 2 },
  { name: '乐队', id: 3 },
]
const SingerArea = [
  { name: '全部', id: -1 },
  { name: '华语', id: 7 },
  { name: '欧美', id: 96 },
  { name: '日本', id: 8 },
  { name: '韩国', id: 16 },
  { name: '其他', id: 0 },
]


const Singer = {
  EnglishLetters,
  SingerType,
  SingerArea
}

// mv 页面的东西
const MvArea = ['全部', '内地', '港台', '欧美', '日本', '韩国']
const MvType = ['全部', '官方版', '原生', '现场版', '网易出品']
const MvOrder = ['最热', '最新']
const Mv = {
  MvArea,
  MvType,
  MvOrder
}

Vue.prototype.$constant = {
  ImgError: "https://z3.ax1x.com/2021/11/19/Ib4IVs.png", // 加载图片错误
  ImgNowLoading: "https://z3.ax1x.com/2021/11/16/IRL9rq.png", // 正在加载图片
  Play: Play,
  NewSongsCategory,
  ToplistTeseBang,
  Singer,//  歌手页面相关的常量
  Mv,
}
